package com.example.algorithm.no0001;

import com.example.algorithm.no0001.solution.HashMapSolution1;

import java.util.Arrays;

/**
 * @Description 解答测试
 * @ClassName SolutionTest
 * @Author Administrator
 * @Date 2020/5/16 12:54
 * @Version 1.0.0
 */
public class SolutionTest {

    static int[] nums = new int[]{2, 7, 11, 15};
    static int target = 9;

    public static void main(String[] args) {
        System.out.println("输入数组为: " + Arrays.toString(nums) + ", 目标值为: " + target);

        Solution solution = new HashMapSolution1();

        System.out.println(Arrays.toString(solution.twoSum(nums, target)));

    }
}
